var express = require('express');
var router = express.Router();
/* GET home page. */
  
module.exports = function (Config) {  
    router.get(['', '/:id'], function (req, res, next) {
        var params = req.params;
        res.render('index',{id:params.id,info:Config[params.id]});
    });
    return router;
}